<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Cli extends MY_Luckydog
{
	public function __construct()
	{
		parent::__construct();
        $this->load->model('luckydog/News_model', 'news');
	}
    public function index()
    {
       $expireRuanwenList = $this->news->getExpireRuanwen();
       if($expireRuanwenList)
       {
       	foreach ($expireRuanwenList as $key => $value) {
       		 $this->news->xiajia($value['newsID']);
       	}
       }
       echo date("Y-m-d H:i:s")."success";
       exit;
    }
	
}
/* End of file login.php */
/* Location: ./application/controllers/luckydog/login.php */
